package com.shiguiwu.springmybatis.spring.scope;

import lombok.Data;

/**
 * @description: 鲨鱼爸爸
 * @author: stone
 * @date: Created by 2021/3/9 10:27
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.scope
 */
@Data
public class Shark {

    private String name;

    private Integer age;

    private String beanScope;

    public void eat() {
        System.out.println("吃东西。。。。。");
    }

    public Shark(String beanScope) {
        this.beanScope = beanScope;
        System.out.println(String.format("线程:%s,create Shark,{sope=%s},{this=%s}", Thread.currentThread(), beanScope, this));
    }


}
